package com.xu.junit;
import org.junit.experimental.theories.DataPoints;
import org.junit.experimental.theories.FromDataPoints;
import org.junit.experimental.theories.Theories;
import org.junit.experimental.theories.Theory;
import org.junit.runner.RunWith;

@RunWith(Theories.class)
public class JUnitStudy4_Theories {
	
	/**
	 * 数字字符串 0-9
	 * @return
	 */
	@DataPoints({"age"})
	public static int[] getNumberString() {
		return new int[]{0,1,2,3,4,5,6,7,8,9};
	}
	
	@DataPoints({"name"})
	public static String[] getName() {
		return new String[]{"张三","李四","王五"};
	}
	
	
	@Theory
    public void testMethod(@FromDataPoints("name")String name,@FromDataPoints("age")int age){
// TODO: System.out.print is used
        System.out.println(String.format("%s's age is %s", name,age));
    }
	
	
	
	
	
}
